<?php
include('../../include/functions.inc.php');
$intEmpresa = isset($_GET['empresa']) ? $_GET['empresa'] : 0 ;
?>
<link href="../../css/ContentStyle.css" rel="stylesheet" type="text/css" />
<link href="../../css/tableorderer.css" rel="stylesheet" type="text/css" />
<div id="datacontainer">
    <table width="100%" cellpadding="0" cellspacing="1" class="prototools-table">
        <tbody>
            <tr>
                <th width="10%" style="width:5%">Carnet</th>
                <th width="90%">Nombre</th>
            </tr>
            <?php
            $intCorrelativo = 0;
            $arrEstudiantes = $db->query_select("cllg_student", "FK_EMPRESA=" . $intEmpresa, "ID");
            foreach( $arrEstudiantes as $arrTMP ) {
                ?>
                <tr class="<?php print fmod($intCorrelativo, 2) == 0 ? 'data line0' : 'data line1'; ?>">
                    <td><?php print $arrTMP['ID']; ?></td>
                    <td><?php print $arrTMP['FIRST_NAME'].' '.$arrTMP['SECOND_NAME'].' '.$arrTMP['LAST_NAME']; ?></td>
                </tr>
                <?php
                $intCorrelativo++;
            }
            ?>
        </tbody>
    </table>
</div>